<template>
<!-- #ifdef APP-PLUS -->
<cell>
<!-- #endif -->
<view class="list-card padding detail-white sec-top">
	<view class="list-card-content sec-left"
		@click="onItemClick('detail')">
		<view class="list-card-header">
			<view class="list-card-title">{{ item.user && item.user.nickname }}</view>
			<view class="list-card-time">{{ item.lastPostTime }}</view>
		</view>
		<view class="list-card-body">
			<rich-text :nodes="item.content"></rich-text>
		</view>
		<view class="shim-small"></view>
	</view>
</view>
<!-- #ifdef APP-PLUS -->
</cell>
<!-- #endif -->
</template>

<script>
export default {
	props: {
		item: {
			type: Object,
			default: () => {}
		}
	},
	methods: {
		onItemClick(type) {
			this.$emit('on-item', type);
		}
	}
}
</script>
